package org.gdstash.ui.table;

import javax.swing.*;
import javax.swing.table.TableCellEditor;

public class GDDevotionTable extends JTable {
    @Override
    public TableCellEditor getCellEditor(final int row, final int col) {
        TableCellEditor editor = null;
        if (col == 1) {
            final GDDevotionTableModel model = (GDDevotionTableModel) this.getModel();
            editor = model.getLevelEditor(row);
        }
        if (editor != null) {
            return editor;
        }
        return super.getCellEditor(row, col);
    }
}
